count subarrays with all elements

welcome to shbcf.ru